package com.sc.student.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

public class Course implements Serializable {
    private Integer id;

    private String coursename;

    private Integer coursetypeid;

    private Integer teacherid;

    private Integer coursetime;

    private BigDecimal price;

    private Teacher teacher;

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCoursename() {
        return coursename;
    }

    public void setCoursename(String coursename) {
        this.coursename = coursename == null ? null : coursename.trim();
    }

    public Integer getCoursetypeid() {
        return coursetypeid;
    }

    public void setCoursetypeid(Integer coursetypeid) {
        this.coursetypeid = coursetypeid;
    }

    public Integer getTeacherid() {
        return teacherid;
    }

    public void setTeacherid(Integer teacherid) {
        this.teacherid = teacherid;
    }

    public Integer getCoursetime() {
        return coursetime;
    }

    public void setCoursetime(Integer coursetime) {
        this.coursetime = coursetime;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", coursename=").append(coursename);
        sb.append(", coursetypeid=").append(coursetypeid);
        sb.append(", teacherid=").append(teacherid);
        sb.append(", coursetime=").append(coursetime);
        sb.append(", price=").append(price);
        sb.append("]");
        return sb.toString();
    }
}